import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/goodsledger/` + url, ...arg)

/**
 * 物品台账Api接口管理器
 *
 * @author 古月墨塵
 * @date  2022/11/26 11:24
 **/
export default {
	// 获取物品台账分页
	bizGoodsLedgerPage(data) {
		return request('page', data)
	},

	// 获取物品台账检查列表
	bizGoodsLedgerCheckList(data) {
		return request('checkList', data)
	},
	//物品台账导出
	bizGoodsLedgerExport(data) {
		const options = {
			responseType: 'blob'
		}
		return request('export', data, 'post', options)
	},
	//试剂台账导出
	bizReagentLedgerExport(data) {
		const options = {
			responseType: 'blob'
		}
		return request('exportForReagent', data, 'post', options)
	}
}
